package com.ml.mall.entity.addr;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "sys_order_addr")
public class SysOrderAddr implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at",fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at",fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    private Integer isDelete;

    /**
     * 订单ID
     */
    @TableField(value = "oid")
    private Long oid;

    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 电话
     */
    @TableField(value = "phone_number")
    private String phoneNumber;

    /**
     * 邮编
     */
    @TableField(value = "post_code")
    private String postCode;

    /**
     * 城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 区
     */
    @TableField(value = "states")
    private Long states;

    /**
     * 国家
     */
    @TableField(value = "country")
    private Long country;

    /**
     * 街道地址
     */
    @TableField(value = "street_address")
    private String streetAddress;

    /**
     * 0：账单信息；1：收货信息
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 地址1
     */
    @TableField(value = "regional_address")
    private String regionalAddress;

    /**
     * 地址1
     */
    @TableField(value = "email")
    private String email;


    /**
     * 地址1
     */
    @TableField(value = "entity_name")
    private String entityName;

    /**
     * 创建人公司ID
     */
    @TableField(value = "company_id")
    private Long companyId;


    private static final long serialVersionUID = 1L;
}